<template>
<GroupDetail :initail-group-info="groupInfo"></GroupDetail>
</template>

<script>
import GroupDetail from './GroupDetail'

export default {
  name: 'AddGroupTwo',
  data () {
    return {
      groupInfo: {
        attendanceName: this.$root.newGroupName,
        enterId: this.$root['userInfo'].enterpriseId,
        enterName: this.$root['userInfo'].company,
        amTime: '08:30-11:30',
        pmTime: '13:00-17:30',
        location: this.$root['newGroupPosition'].location,
        detailAddr: this.$root['newGroupPosition'].detailAddr,
        longitude: this.$root['newGroupPosition'].longitude,
        latitude: this.$root['newGroupPosition'].latitude,
        range: '300',
        employees: this.$root.newGruopUsers || []
      }
    }
  },
  components: {
    GroupDetail
  },
  mounted () {
    // alert(JSON.stringify(this.groupInfo))
    // const _this = this
    // setTimeout(function () {
    //   console.log('fuck ...........')
    //   console.log(_this.groupInfo)
    // }, 5000)
  },
  methods: {
  }
}
</script>
